<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('机构/分类/专业/级别')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="admin,hangye,zhuanye,jibie">
                <select class="admin form-control" data-rule="required" name="row[user_check_id]" data-url="ajax/usercheck">

                </select>

                <select class="hangye form-control" data-rule="required" name="row[pid]" data-query-name="user_check_id" data-url="ajax/userCheckCategory">

                </select>
                <select class="zhuanye form-control" data-rule="required" name="row[mechanism_category_top]" data-query-name="pid" data-url="ajax/userCheckCategory1">

                </select>
                <select class="jibie form-control" data-rule="required" name="row[mechanism_category_two]" data-query-name="pid" data-url="ajax/userCheckCategory1">

                </select>

            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Courses_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-courses_name" data-rule="required" class="form-control" name="row[courses_name]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="text" data-rule="required">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Label')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-label" class="form-control selectpicker" name="row[label]">
                {foreach name="labelList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Label2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-label2" class="form-control" name="row[label2]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Like_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-like_rate" class="form-control" name="row[like_rate]" type="number" value="100">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sales_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales_num" data-rule="required" class="form-control" name="row[sales_num]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_index')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="isIndexList" item="vo"}
                <label for="row[is_index]-{$key}"><input id="row[is_index]-{$key}" name="row[is_index]" type="radio" value="{$key}" {in name="key" value=""}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Url_image')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="input-group">-->
<!--                <input id="c-url_image" data-rule="required" class="form-control" size="50" name="row[url_image]" type="text">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="faupload-url_image" class="btn btn-danger faupload" data-input-id="c-url_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-url_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-url_image" class="btn btn-primary fachoose" data-input-id="c-url_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-url_image"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline faupload-preview" id="p-url_image"></ul>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="0.00">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="视频"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('老师')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-teacher_name"  class="form-control"  name="row[teacher_name]" >
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
